// ok

export default {
  view_sale_split_tree: {
    _odoo_model: 'ir.ui.view',
    model: 'fp.sale.split',
    type: 'tree',
    fields: {
      code: {},
      name: {}
    }
  },

  view_sale_split_form: {
    _odoo_model: 'ir.ui.view',
    model: 'fp.sale.split',
    type: 'form',

    fields: {
      code: {},
      name: {},
      sequence: {},
      note: {},
      split_group_ids: { widget: 'many2many_tags' },
      linenum_select: {},
      split_product_id: {},
      note_select: {}
    }
  },

  action_sale_split: {
    _odoo_model: 'ir.actions',
    name: '开票规则',
    type: 'ir.actions.act_window',
    res_model: 'fp.sale.split',
    domain: [],
    context: {},
    views: {
      tree: 'view_sale_split_tree',
      form: 'view_sale_split_form'
    }
  }
}
